<template>
  <div>
    <van-nav-bar title="城市列表" left-arrow @click-left="onClickLeft" fixed />
    <CityList :nowCity="nowCity"></CityList>
  </div>
</template>

<script>
import CityList from './CityList.vue'

export default {
  data () {
    return {
      nowCity: ''
    }
  },
  created () {
    this.nowCity = this.$route.query.city
  },
  methods: {
    onClickLeft () {
      this.$router.push({
        path: '/home'
      })
    }
  },
  components: { CityList }
}
</script>
<style>
.van-index-bar {
  margin-top: 46px;
}
</style>
